Feature: Get Compare Plan Detail List API

  @happy 
  Scenario: Request contain valid carrier id and plan id - Compare 4 plans
    When I send a POST request to "quote/ifp/compare?planKey=9811:200031,9811:200032,9811:200034,9811:200035"
      """
      {
       "zipCode": "98001",
       "allianceId": "Gro21010",
       "county": "",
       "members": {
       "primary": {
       "gender": "MALE",
        "birthday": "01/01/2000",
        "smoker": false,
        "student": false
       }
       },
       "requestEffectiveDate": "08/01/2016",
       "qualifyingLifeEvent": "OTHER",
       "dateOfEvent": null,
       "forcedOep": false
       }
      """
    Then the response status should be 200
    And the response should contain planId "200031,200032,200034,200035"

  @happy 
  Scenario: Request contain valid carrier id and plan id - Compare 1 plans
    When I send a POST request to "quote/ifp/compare?planKey=9811:200031"
      """
      {
       "zipCode": "98001",
       "allianceId": "Gro21010",
       "county": "",
       "members": {
       "primary": {
       "gender": "MALE",
        "birthday": "01/01/2000",
        "smoker": false,
        "student": false
       }
       },
       "requestEffectiveDate": "08/01/2016",
       "qualifyingLifeEvent": "OTHER",
       "dateOfEvent": null,
       "forcedOep": false
       }
      """
    Then the response status should be 200
    And the response should contain planId "200031"

  @happy 
  Scenario: Update carrierId and planId, get compare plan list
    When I send a POST request to "quote/ifp/compare?planKey=97102600:200249"
      """
       {
       "zipCode": "97001",
       "allianceId": "Pac26719",
       "county": "",
       "members": {
       "primary": {
       "gender": "MALE",
        "birthday": "01/01/2000",
        "smoker": false,
        "student": false
       }
       },
       "requestEffectiveDate": "08/01/2016",
       "qualifyingLifeEvent": "OTHER",
       "dateOfEvent": null,
       "forcedOep": false
       }
      """
    Then the response status should be 200
    And the response should contain planId "200249"

  @sad 
  Scenario Outline: planId and carrierId validation
    When I send a POST request to "quote/ifp/compare?planKey=<carrierId>:<planId>"
      """
      {
       "zipCode": "98001",
       "allianceId": "Gro21010",
       "county": "",
       "members": {
       "primary": {
       "gender": "MALE",
        "birthday": "01/01/2000",
        "smoker": false,
        "student": false
       }
       },
       "requestEffectiveDate": "08/01/2016",
       "qualifyingLifeEvent": "OTHER",
       "dateOfEvent": null,
       "forcedOep": false
       }
      """
    Then the response status should be 200
    And the JSON response should be
      """
      []
      """

    Examples: 
      | carrierId | planId  |
      |           | 200031  |
      | 9811      |         |
      |           |         |
      | 9811s     | 200031  |
      | 9811      | 200031s |
      | 9811      | 200249  |
